package com.fjzzct.report.utils;

public class AjaxFormat {
	
    public enum ResultEnum {
        tokenUnValid(-1),
        success(1),
        fail(-2);
        
        private final int value;
        
        // 构造器默认也只能是private, 从而保证构造函数只能在内部使用
        ResultEnum(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
	
	private int Result;
	private String Content;
	public String ResultDesc;
	public Object JsonContent;
	
	public void SetResult(ResultEnum result) {
		Result=result.getValue();
	}

	public int GetResult() {
		return Result;
	}

	public void SetData(String data) {
		Content = data;
	}
	
	public String GetData() {
		return Content;
	}
	
	public void SetResultDesc(String resultDesc) {
		ResultDesc = resultDesc;
	}

	public String GetResultDesc() {
		return ResultDesc;
	}

	public void SetJsonContent(Object jsonContent) {
		JsonContent=jsonContent;
	}
	
	public Object GetJsonContent() {
		return JsonContent;
	}
}
